ToBase64Chars(Byte[],Int32,Int32,Char[],Int32) Method
In This Topic
Converts a subset of the given byte array to an equivalent subset of an Unicode character array encoded with base-64 digits. Parameters specify the subsets as offsets in the input and output arrays, and the number of elements in the input array to convert.
Syntax
'Declaration
Public Overloads Shared Function ToBase64Chars( _
ByVal () As System.Byte, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal () As System.Char, _
ByVal As System.Integer _
) As System.Integer
'Usage
Dim bytes() As System.Byte
Dim byteIndex As System.Integer
Dim byteCount As System.Integer
Dim chars() As System.Char
Dim charIndex As System.Integer
Dim value As System.Integer
value = NConvert.ToBase64Chars(bytes, byteIndex, byteCount, chars, charIndex)
public static System.int ToBase64Chars(
System.byte[] ,
System.int ,
System.int ,
System.char[] ,
System.int
)
Parameters
- bytes
- byteIndex
- byteCount
- chars
- charIndex
Return Value
A 32-bit signed integer containing the number of chars created in the chars array.
Requirements
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
See Also